<template>
  <div class="comWrap">
    <div class="loginWrap">
      <h2>项目管理系统</h2>
      <div class="loginCon">
        <div class="formWrap">
          <div class="formItem">
            <p>用户名</p>
            <input type="text" placeholder="请输入您的用户名" autocomplete="off">
          </div>
          <div class="formItem">
            <p>密码</p>
            <input type="password" placeholder="请输入您的密码" autocomplete="new-password">
          </div>
        </div>
        <div class="loginButton" @click="loginFn">
          <span>登录</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    loginFn(){
      window.location.href="./index.html";
    }
  }
};
</script>

<style lang="scss" scoped>
input::-webkit-input-placeholder {
    /* placeholder颜色  */
    color: #ffffff;
    /* placeholder字体大小  */
    font-size: 14px;
}
.comWrap {
  position: relative;
  width: 100%;
  height: 100%;
  background: #7f7fd5; /* fallback for old browsers */
  background: -webkit-linear-gradient(
    60deg,
    #91eae4,
    #86a8e7,
    #7f7fd5
  ); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(
    60deg,
    #91eae4,
    #86a8e7,
    #7f7fd5
  ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
.loginWrap {
  width: 600px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  & > h2 {
    color: #ffffff;
    font-weight: bold;
    font-size: 60px;
    letter-spacing: 10px;
    text-align: center;
    margin-bottom: 20px;
  }
  .loginCon {
    width: 400px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 50px 30px;
    .formWrap{ 
      .formItem{
        margin-bottom: 20px;
        p{
          display: block;
          font-size: 18px; 
          font-weight: bold;
          font-family:'Microsoft YaHei';
          color: #ffffff;
          margin-bottom: 20px;
          letter-spacing: 5px;
        } 
        input{
          display: block;
          width: 100%;
          background: none;
          border-style:none;
          border-bottom: 2px solid #ffffff; 
          line-height: 30px;
          font-size: 16px;
          font-weight: bold;
          color: #ffffff;
          margin-bottom: 10px;
        }
      }
    }
    .loginButton{
      margin-top: 40px;
      span{
        display: block;
        width: 100%;
        line-height: 40px;
        text-align: center;
        background-color: rgba(255, 255, 255, 0.7);
        border-radius: 6px;
        box-shadow: inset 0 0 2px #b5bafd;
        transition: all 0.3s;
        color: #7f7fd5;
        font-size: 16px;
        font-weight: bold;
        letter-spacing: 4px;
        position: relative;
        cursor: pointer;
        &:hover{
          background-color: rgba(255, 255, 255,1);
        }
      }
    }
  }
}
</style>
